how to calculate cnc machining cost